﻿

namespace Oddo.Concept.Crm.Common.Communication.Responses
{
    using System.Collections.Generic;
    using Oddo.Concept.Crm.Common.Communication.Interfaces;
    using Oddo.Concept.Crm.Common.Communication.Responses.Base;
    using Oddo.Concept.Crm.Common.Models;
    using Newtonsoft.Json;

    /// <summary>
    /// 
    /// </summary>
    public abstract class FindResponse : ResponseBase, IFindResponse
    {
    }

    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class FindResponse<T> : ResponseBase<T>, IFindResponse<T> 
        where T : IBusinessModel
    {
        [JsonProperty("values")]
        public IList<T> Values { get; set; }
    }
}